import Vue from 'vue';
import App from './App.vue';
import router from "./router/router";
import store from "./store/store";
import Fastclick from 'fastclick';
import VueLazyload from "vue-lazyload";
import './assets/css/iconfont.css';

Vue.config.productionTip = false;
//数据总线
Vue.prototype.$bus = new Vue();
//移动端解决300ms延迟问题
Fastclick.attach(document.body);
//Vue图片懒加载
Vue.use(VueLazyload,{
  loading: require('./assets/images/backTop/placeholder.png'),
  preLoad: 3
});

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app');
